import { EntitySchema } from '@mikro-orm/core';

export class ImsYzdKpUsersCache {
  id!: number;
  key?: unknown;
  value?: unknown;
  userId!: number;
  uniacid!: number;
}

export const ImsYzdKpUsersCacheSchema = new EntitySchema({
  class: ImsYzdKpUsersCache,
  properties: {
    id: { primary: true, type: 'number' },
    key: { type: 'unknown', columnType: 'longtext', nullable: true },
    value: { type: 'unknown', columnType: 'longtext', nullable: true },
    userId: { type: 'number' },
    uniacid: { type: 'number' },
  },
});
